﻿<UserControl x:Class="Profit.Controls.GaugeUsageControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:Profit.Controls" 
             mc:Ignorable="d" 
             d:DesignHeight="12" d:DesignWidth="104">
    <Grid>
        <Border Margin="1,1,0,2" CornerRadius="2" VerticalAlignment="Stretch" HorizontalAlignment="Left" MaxWidth="100" BorderThickness="2" BorderBrush="Transparent" Background="{Binding FillBrush, RelativeSource={RelativeSource AncestorType=local:GaugeUsageControl}}" Width="{Binding Value, RelativeSource={RelativeSource AncestorType=local:GaugeUsageControl}}"/>
        <Border Margin="1,2,1,2" CornerRadius="3" VerticalAlignment="Stretch" Background="{StaticResource TransparentBrushKey}" BorderThickness="1" BorderBrush="{StaticResource LightGrayBrushKey}" HorizontalAlignment="Center" Width="100"/>
    </Grid>
</UserControl>
